<?php
function activeClassMemberLeft($val1,$val2,$className='active') {
    if($val1==$val2){
        return ' class="'.$className.'" ';
    }
}
?>

<div class="content_mb_l">
    <div class="folder">
        <div class="folder-title-new00" >
            <div class="square00"></div>
            <div style="margin-top: 7px;float: left"><a>[Thông tin giao dịch]</a></div>
        </div>
        <div class="folder-body00" style="height:160px;padding-top: 0px">
        <div class="line_menu_mb">
            <ul>
                <li <?php echo activeClassMemberLeft($params[1],$CONFIG_MEMBER_LINK['manage-posted-property']);?>><a href="<?php echo get_link("member").'/'.$CONFIG_MEMBER_LINK['manage-posted-property']."/";?>">[Quản lý các tin đã đăng]</a><font>(<?php echo countProperty('actived');?>)</font></li>
                <li <?php echo activeClassMemberLeft($params[1],$CONFIG_MEMBER_LINK['manage-pending-property']);?>><a href="<?php echo get_link("member").'/'.$CONFIG_MEMBER_LINK['manage-pending-property']."/";?>">[Các tin đang chờ duyệt] </a><font>(<?php echo countProperty('pending');?>)</font></li>
                  <li <?php echo activeClassMemberLeft($params[1],$CONFIG_MEMBER_LINK['manage-draft-property']);?>><a href="<?php echo get_link("member").'/'.$CONFIG_MEMBER_LINK['manage-draft-property']."/";?>">[Quản lý các tin nháp]</a><font>(<?php echo countProperty('draft');?>)</font></li>
                <li <?php echo activeClassMemberLeft($params[1],$CONFIG_MEMBER_LINK['manage-favourite-property']);?>><a href="<?php echo get_link("member").'/'.$CONFIG_MEMBER_LINK['manage-favourite-property']."/";?>">[Các tin rao yêu thích]</a><font>(<?php echo countFavouriteProperty();?>)</font></li>
                <!--<li><img src="<?php echo SITE_IMAGES_URL?>/icon_mb7.gif" class="icon_mb" /><a href="#">Các tin đã xóa</a><font>(1)</font></li>-->
            </ul>
        </div>
   </div>
        <div class="folder-bottom00">
            <div class="square-bottom00"></div>
        </div>

    </div>

	
      <div class="folder" >
        <div class="folder-title-new00" >
            <div class="square00"></div>
            <div style="margin-top: 7px;float: left"><a>[Hòm thư cá nhân]</a></div>
        </div>
        <div class="folder-body00" style="height:115px;padding-top: 0px">
        <div class="line_menu_mb">
            <ul>

                <li <?php echo activeClassMemberLeft($params[1],$CONFIG_MEMBER_LINK['send']);?>><a href="<?=get_link("member")."/".$CONFIG_MEMBER_LINK["send"]?>" title="Soạn thư">[Soạn thư]</a></li>
                <li <?php echo activeClassMemberLeft($params[1],$CONFIG_MEMBER_LINK['inbox']);?>>
                  
                    <a href="<?=get_link("member")."/".$CONFIG_MEMBER_LINK["inbox"]?>" title="Hộp thư đến">[Hộp thư đến]</a>
                    <?php
                    $inbox_noread_num= get_noread_inbox($_SESSION['login']['id']);
                    $inbox_num = get_total_inbox($_SESSION['login']['id']);
                    
                        echo "<font>(".$inbox_noread_num."/".$inbox_num.")</font>";
                    
                    ?>
                </li>
                <li <?php echo activeClassMemberLeft($params[1],$CONFIG_MEMBER_LINK['sent']);?>>
                  
                    <a href="<?=get_link("member")."/".$CONFIG_MEMBER_LINK["sent"]?>" title="Các thư đã gửi">[Các thư đã gửi]</a>
                    <font>(<?=get_total_sent($_SESSION['login']['id'])?>)</font>
                </li>

            </ul>
         </div>
    </div>
        <div class="folder-bottom00">
            <div class="square-bottom00"></div>
        </div>

    </div>
	
        <div class="folder" >
        <div class="folder-title-new00" >
            <div class="square00"></div>
            <div style="margin-top: 7px;float: left"><a>[Thông tin thành viên]</a></div>
        </div>
        <div class="folder-body00" style="height:130px;padding-top: 0px">
        <div class="line_menu_mb">
            <ul>
                <li <?php echo activeClassMemberLeft($params[1],$CONFIG_MEMBER_LINK['view-profile']);?>><a href="<?=get_link("member")."/".$CONFIG_MEMBER_LINK["view-profile"]?>" title="Thông tin tài khoản">[Thông tin tài khoản]</a></li>
                <li <?php echo activeClassMemberLeft($params[1],$CONFIG_MEMBER_LINK['update-profile']);?>><a href="<?=get_link("member")."/".$CONFIG_MEMBER_LINK["update-profile"]?>" title="Cập nhật thông tin tài khoản">[Cập nhật thông tin tài khoản]</a></li>
                <li <?php echo activeClassMemberLeft($params[1],$CONFIG_MEMBER_LINK['change-password']);?>><a href="<?=get_link("member")."/".$CONFIG_MEMBER_LINK["change-password"]?>" title="Thay đổi mật khẩu">[Thay đổi mật khẩu]</a></li>
            </ul>
        </div>
    </div>
        <div class="folder-bottom00">
            <div class="square-bottom00"></div>
        </div>

    </div>
</div>